$OpenBSD: patch-filters_ikon2icon_c,v 1.2 2015/02/17 22:03:26 naddy Exp $
--- filters/ikon2icon.c.orig	Mon Apr 15 05:40:02 1991
+++ filters/ikon2icon.c	Tue Feb 17 23:02:06 2015
@@ -18,7 +18,7 @@
 
 #define  PATCHLEVEL  1
 
-#define  GETS        (void) gets     /* To make lint happy. */
+#define  GETS        (void) fgets     /* To make lint happy. */
 #define  PRINTF      (void) printf
 #define  SPRINTF     (void) sprintf
 #define  SSCANF      (void) sscanf
@@ -65,7 +65,7 @@ read_blit()                         /* Read rasterfile
 
   for (i = 0; i < BLITHEIGHT; i++)
     {
-      GETS(nextline) ;
+      GETS(nextline, MAXLINE - 1, stdin) ;
       ptr = nextline ;
       for (j = 0; j < 3; j++)
         {
